package com.hastane.islems;

import java.util.List;

import com.hastane.obj.AbsObject;

public abstract class Islemler {

	public boolean ekle(AbsObject birey) {
		getList().add(birey);
		return true;
	}

	public abstract void detayGorunule(AbsObject birey) throws Exception;

	public void detayGorunule(List<AbsObject> bireys) throws Exception {
		for (AbsObject birey : bireys) {
			detayGorunule(birey);
		}
	}

	public void tumDetayGoruntule() throws Exception {
		for (AbsObject birey : getList()) {
			detayGorunule(birey);
		}
	}

	abstract List<AbsObject> getList();
}
